/*
 * test.cpp
 *
 *  Created on: May 22, 2019
 *      Author: wang
 */

#include <stdio.h>
#include <stdlib.h>

#include "pusen_shoot.h"

int test_shooter_callback(int event_id,char *detail)
{
  printf("%s %d detail:%s\n",__FUNCTION__,__LINE__,detail);
  return 0;
}

int main(int argc,char *argv[])
{
  int ret=0;
  char *bmp_file="test.bmp";
  if(argc>=2){
      bmp_file=argv[1];
  }
  pusen_shooter shoot;

  shoot.register_cb(test_shooter_callback);
  //shoot.set_resolution(240,240,2);
  shoot.set_resolution(480,480,2);
  shoot.shoot(bmp_file);

  return 0;
}
